import { Link, Outlet } from 'react-router-dom';
const ParentComponent=()=>{
    return (<div>
        <h3>父组件</h3>
        <div>
       
        <Link to="child1">子路由1</Link>
        <Link to="child2">子路由2</Link>
     
        </div>
         {/* 子路由内容将在这里渲染 */}
      <Outlet />
        </div>)
}
export default ParentComponent